home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / amos / AMOSList0993.lzh / AMOSLIST / 000206_amos-request@svcs1.digex.net_Fri Sep 17 14:41:33 1993.msg < prev    next >
Internet Message Format  |  1993-10-03  |  3KB

  1. Received: from po.CWRU.Edu by access.digex.net with SMTP id AA10505
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Fri, 17 Sep 1993 14:41:31 -0400
  3. Return-Path: <amos-request@svcs1.digex.net>
  4. Received: from svcs1.digex.net by po.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.9.3)
  5.     id AA05642; Fri, 17 Sep 93 14:40:03 -0400 (from amos-request@svcs1.digex.net for mcox@access.digex.com)
  6. Received: by svcs1.digex.net id AA16274
  7.   (5.65c/IDA-1.4.4 for amos-list-out); Fri, 17 Sep 1993 11:29:51 -0400
  8. Received: from access.digex.net by svcs1.digex.net with SMTP id AA16270
  9.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Fri, 17 Sep 1993 11:29:49 -0400
  10. Received: from vax.mbhs.edu by access.digex.net with SMTP id AA08223
  11.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Fri, 17 Sep 1993 11:29:41 -0400
  12. Message-Id: <199309171529.AA08223@access.digex.net>
  13. Date: 17 Sep 93 11:33:00 EST
  14. From: "Andrew Church" <95ACHURCH@vax.mbhs.edu>
  15. Subject: Re: My 3d proggy
  16. To: "amos-list" <amos-list@access.digex.net>
  17. Status: RO
  18.  
  19. >* Is it possible to have a library procedure in a compiled state, and access
  20. >  it from an uncompiled program? ie Can I paste a compiled program into an
  21. >  uncompiled program and call it only when needed?
  22.  
  23.   Only if it was compiled with the same system it's being run on.  I.E. if
  24. you're using AMOS 1.x, you can only include AMOS 1.x compiled procedures, and
  25. likewise for Pro.  This will cause a problem if you intend to distribute the
  26. program as an AMOS file, as not everybody has the same system.
  27.  
  28.   You'll also have to fool around with the AMOS file in a binary editor if you
  29. want to have more than one, as they'd all be called COMPILED.  You might
  30. change the extra ones to COMPILE0 or something.
  31.  
  32. >* Is it possible to call OTHER programs (either Amos or compiled to cli progs)
  33. >  from an amos program?  ie Can I compile the library and call it if it is
  34. >  EXTERNAL to the program using it?
  35.  
  36.   You can run a CLI-compiled program using Pro's Exec command or Doscall(-222)
  37. (which is Execute()) in AMOS 1.3.  If you use the Doscall method, the string
  38. to execute must be terminated with Chr$(0) and placed in Dreg(1), and Dreg(2)
  39. and Dreg(3) must be 0.
  40.  
  41.   Since an AMOS-compiled program is just a compiled procedure, see above for
  42. that.
  43.  
  44. >* I need to pass data to the library before I call it.  I figure the best way
  45. >  to do this is to use a temporary bank, but I'm not sure how to access each
  46. >  element in the bank (Poke and Peek?.....haven't got to this section of the
  47. >  manual yet!).
  48.  
  49.   Use the Dreg() and Areg() arrays.
  50.  
  51.   (sorry, out of time...)
  52.  
  53.   --Andy Church
  54.